package org.br.plotter.gui;

import java.awt.Dimension;

import javax.swing.*;

public class LabelComponentPanel extends JPanel {
	private JLabel jlabel;
	private JTextField textField;

	public LabelComponentPanel(String label, String textValue) {
	
	

		jlabel = new JLabel(label);
		textField = new JTextField(textValue);
		textField.setSize(200, 20);
		textField.setPreferredSize(new Dimension(200,20));
		add(jlabel);
		add(textField);

	}

	public String getValue() {
		return textField.getText();
	}
	public void setValue(String value) {
		textField.setText(value);
	}

	public void setVerifier(InputVerifier verifier) {
		textField.setInputVerifier(verifier);
	}
	public void setLabel(String label) {
		jlabel.setText(label);
	}
	public static void main(String[] args) {
		JFrame f = new JFrame();
		f.setContentPane( new LabelComponentPanel("SS",""));
		f.setVisible(true);
	}

}